-- GENERATED SPELL FOR [Ancient Drakkari King] --


function spell0_26871(pUnit, Event) --@Drakkari Curse,n/a--
pUnit:FullCastSpellOnTarget(52466,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26871', 10000, 1)
end

function Sorts_26871(pUnit, Event)
local choix_sorts_26871 = math.random(0, 0)
if choix_sorts_26871 == 0 then
pUnit:RegisterEvent('spell0_26871', 1, 1)
end
end

function mob26871_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26871', math.random(1500, 3000), 1)
end

function mob26871_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26871_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26871_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26871, 1, 'mob26871_Action')
RegisterUnitEvent(26871, 2, 'mob26871_Leave')
RegisterUnitEvent(26871, 3, 'mob26871_Kill')
RegisterUnitEvent(26871, 4, 'mob26871_Die')
